import request from '@/utils/request'

// 查询柜格状态列表
export function listGrids(query) {
  return request({
    url: '/grids/grids/list',
    method: 'get',
    params: query
  })
}

// 查询柜格状态详细
export function getGrids(gridId) {
  return request({
    url: '/grids/grids/' + gridId,
    method: 'get'
  })
}

// 新增柜格状态
export function addGrids(data) {
  return request({
    url: '/grids/grids',
    method: 'post',
    data: data
  })
}

// 修改柜格状态
export function updateGrids(data) {
  return request({
    url: '/grids/grids',
    method: 'put',
    data: data
  })
}

// 删除柜格状态
export function delGrids(gridId) {
  return request({
    url: '/grids/grids/' + gridId,
    method: 'delete'
  })
}
